import { messages } from "share/common";
import React, { Component } from "react";
import { Tabs } from "antd";

import AirlineConfig from "../../../containers/supplier-management/airline-platform/airline-config/airline-config";
import HotelConfig from "../../../containers/supplier-management/airline-platform/hotel-config/hotel-config";
const TabPane = Tabs.TabPane;
import "../../../styles/supplier-management/airline-config/zhenxuan-main.scss";

class ServerMain extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <div className="zhenxuan-main">
        <Tabs>
          <TabPane tab={messages("supplier-1.key516") /*甄选机票服务*/} key="1">
            <AirlineConfig {...this.props} />
          </TabPane>
          <TabPane tab={messages("supplier-1.key517") /*甄选酒店服务-平台模式*/} key="2">
            <HotelConfig {...this.props} />
          </TabPane>
        </Tabs>
      </div>
    );
  }
}

ServerMain.contextTypes = {
  router: React.PropTypes.object,
};

export default ServerMain;
